package com.itheima.system.dao;


import com.itheima.system.pojo.Role;
import org.apache.ibatis.annotations.Update;
import org.springframework.web.bind.annotation.RequestParam;
import tk.mybatis.mapper.common.Mapper;

public interface RoleMapper extends Mapper<Role> {

    @Update("UPDATE t_role SET rolename = #{rolename} WHERE t_role.id=#{id}")
    void updateById(@RequestParam("id") Long id, @RequestParam("rolename") String rolename);

    @Update("update t_role set status=1 where id=#{id}")
    void updateStatusById(Long id);
}
